<extend name="Index:base" />
<block name="title"><title>支付方式</title></block>
<block name="style">
 <style>
.main,.panel-default>.panel-heading{
background:none;
}
body{
background:none;
}
.panel.panel-default,.panel .panel-body,.panel .panel-heading,.table-bordered {
	border:none;
}
.table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {
	border:none;		
	padding:15px;	
	line-height:8px;
	height: 8px;
	border-top: 1px solid #d4d4d4;
	border-bottom: 1px solid #d4d4d4;
}
.name strong{
color:#000000;
font-size:15px;
font-weight:600;
}
.name {
	color:#20a8d8;
	font-size:12px;
}
.smallfont {
	color:#9c9c9c;
	font-size:12px;
}

.align-center{
	text-align:center; 
}
.title2{
text-align:center;
}
.table-bordered > tbody > tr .wd{
	text-align:left;	
}

.col-xs-2,.col-xs-4{
padding-right:0;
margin:10px 0;
}
.col-sm-3{
width:10%;
}
.col-sm-2{
width:8%;
}
.col-sm-1{
width:5%;
}
.col-sm-4{
width:18%;
}
.col-sm-1,.col-sm-2{
margin:16px 0;
}
.col-sm-3,.col-sm-4{
margin:10px 0;
}
.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4{
padding-right:0;
}
 </style>
    <link type="text/css" href="__PUBLIC__/Home/css/jquery-ui-1.8.17.custom.css" rel="stylesheet" />
     <link type="text/css" href="__PUBLIC__/Home/css/jquery-ui-timepicker-addon.css" rel="stylesheet" />

</block>
	<!-- start: Header -->
<block name="body">

			<!-- end: Main Menu -->
						
		<!-- start: Content -->
		<div class="main ">
		
			<div class="row">
				<div class="col-lg-12">
					<h3 class="page-header"><i class="fa fa-life-bouy"></i>支付方式</h3>
				</div>
			</div>

			<div class="row">
				<div class="col-md-12">
			        <div class="panel panel-default">
						<div class="panel-heading">
							
							<a class="btn btn-default" href="{:U('Admset/pay_set')}" id="add_right">支付方式管理</i></a>
							<in name="type" value="edit">
							<h2><span class="break"></span><strong>编辑支付方式</strong></h2>
							</in>	
							<in name="type" value="add">
							<h2><span class="break"></span><strong>添加支付方式</strong></h2>
							</in>							
						</div>&nbsp;&nbsp;&nbsp;
						<div class="panel-body" style="width: 50%;">
							<form action="{:U('Admset/pay_add_on')}" method="post" enctype="multipart/form-data" class="form-horizontal ">
								<input type="hidden" id="pay_type" name="pay_type" class="form-control" value="pay_more" >
								<input type="hidden" id="payment_id" name="payment_id" class="form-control" value="{$pay.payment_id}" >
				                <div class="form-group">
				                    <label class="col-md-3 control-label" for="text-input"><font style="color:red;">*</font>&nbsp;&nbsp;支付方式：</label>
				                    <div class="col-md-9">										
				                        <input type="text" id="payment_name" class="form-control" value="{$pay.payment_name}" disabled>
				                    </div>
				                </div>
								<if condition="$pay.payment_config neq ''">
								<div class="form-group">
									<label class="col-md-3 control-label" for="select">
									<in name="pay.payment_code" value="alipay">
									支付宝账号:
									</in>
									<in name="pay.payment_code" value="tenpay">
									财付通商户号:
									</in>
									<in name="pay.payment_code" value="chinabank">
									网银在线商户号:
									</in>
									<in name="pay.payment_code" value="wxpay">
									商户公众号APPID:
									</in>
									</label>
				                    <div class="col-md-9">
										<in name="pay.payment_code" value="alipay">
										<!--支付宝账号-->
										 <input type="text" id="alipay_service" name="payment_config[alipay_service]" class="form-control" value="{$pay.payment_config.alipay_service}">
										</in>
										<in name="pay.payment_code" value="tenpay">
										<!--财付通-->
										 <input type="text" id="tenpay_account" name="payment_config[tenpay_account]" class="form-control" value="{$pay.payment_config.tenpay_account}">
										</in>
										<in name="pay.payment_code" value="chinabank">
										<!--网银在线-->
										 <input type="text" id="chinabank_account" name="payment_config[chinabank_account]" class="form-control" value="{$pay.payment_config.chinabank_account}">
										</in>
										<in name="pay.payment_code" value="wxpay">
										<!--微信-->
										 <input type="text" id="appid" name="payment_config[appid]" class="form-control" value="{$pay.payment_config.appid}">
										</in>												                       
				                       
				                    </div>
								</div>	
								<div class="form-group">
									<label class="col-md-3 control-label" for="select">
									
									<in name="pay.payment_code" value="alipay">
									交易安全校验码（key）:
									</in>
									<in name="pay.payment_code" value="tenpay">
									财付通密钥:
									</in>
									<in name="pay.payment_code" value="chinabank">
									网银在线密钥:
									</in>
									<in name="pay.payment_code" value="wxpay">
									商户号:
									</in>
									</label>
				                    <div class="col-md-9">
										<in name="pay.payment_code" value="alipay">
										<!--支付宝账号-->
										 <input type="text" id="alipay_account" name="payment_config[alipay_account]" class="form-control" value="{$pay.payment_config.alipay_account}">
										</in>
										<in name="pay.payment_code" value="tenpay">
										<!--财付通-->
										 <input type="text" id="tenpay_key" name="payment_config[tenpay_key]" class="form-control" value="{$pay.payment_config.tenpay_key}">
										</in>
										<in name="pay.payment_code" value="chinabank">
										<!--网银在线-->
										 <input type="text" id="chinabank_key" name="payment_config[chinabank_key]" class="form-control" value="{$pay.payment_config.chinabank_key}">
										</in>
										<in name="pay.payment_code" value="wxpay">
										<!--微信-->
										 <input type="text" id="mchid" name="payment_config[mchid]" class="form-control" value="{$pay.payment_config.mchid}">
										</in>	
				                        
				                    </div>
								</div>
								<in name="pay.payment_code" value="wxpay,alipay">
				                <div class="form-group">
				                    <label class="col-md-3 control-label" for="text-input">
									<in name="pay.payment_code" value="alipay">
									合作者身份（partner ID）:
									</in>
									<in name="pay.payment_code" value="wxpay">
									密钥:
									</in>
									</label>
				                    <div class="col-md-9">
				                       <in name="pay.payment_code" value="alipay">
										<!--支付宝账号-->
										 <input type="text" id="alipay_partner" name="payment_config[alipay_partner]" class="form-control" value="{$pay.payment_config.alipay_partner}">
										</in>
										<in name="pay.payment_code" value="wxpay">
										<!--微信-->
										 <input type="text" id="key" name="payment_config[key]" class="form-control" value="{$pay.payment_config.key}">
										</in>
				                    </div>
				                </div>
								</in>
								</if>	
				                <div class="form-group">
				                    <label class="col-md-3 control-label" for="text-input">&nbsp;&nbsp;启用:</label>
				                    <div class="col-md-9">
				                       <select id="payment_state" name="payment_state" class="form-control" size="1">
											<if condition="$pay.payment_state eq '0'">
												<option value="0">否</option>
											   <option value="1">是</option>
											<elseif condition="$pay.payment_state eq '1'"/>
											<option value="1">是</option>
											<option value="0">否</option>
											<else/>												
											   <option value="1">是</option>
												<option value="0">否</option>		   
											</if>
				                        </select>
				                        
				                    </div>
				                </div>
								<br>
				            
						</div>
						<div class="panel-footer" style="border:none">
		                    <button type="submit" class="btn btn-bg btn-success"><i class="fa fa-dot-circle-o"></i> 确定</button>
		                </div>
					</form>						
			        </div>	
			    </div>			

			
			</div><!--/row				
			
		<!-- end: Content -->
		<br><br><br>
		
	</div><!--/container-->

</block>
<block name="script">
    <script type="text/javascript" src="__PUBLIC__/Home/js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Home/js/jquery-ui-1.8.17.custom.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Home/js/jquery-ui-timepicker-addon.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Home/js/jquery-ui-timepicker-zh-CN.js"></script>
    <script type="text/javascript">
    $(function () {
        $(".ui_timepicker").datetimepicker({
            //showOn: "button",
            //buttonImage: "./css/images/icon_calendar.gif",
            //buttonImageOnly: true,
            showSecond: true,
            timeFormat: 'hh:mm:ss',
            stepHour: 1,
            stepMinute: 1,
            stepSecond: 1
        })
    })
    </script>
</block>	









